{% extends "main.html" %}

{% block content %}
	{% if channels %}
		<h2>Your Channels</h2>
		<ul>
		{% for channel in channels %}
			<li><a href="/channels/{{channel.key}}">{{channel.name}}</a></li>
		{% endfor %}
		</ul>
	{% endif %}
	
	<h3>Create a new channel</h3>
	<form action="/" method="post">
		<label>Name<input name="name"></label>
		<input type="submit" value="create">
	</form>
{% endblock %}